package com.example.graduate.util;

import com.alibaba.fastjson.JSONObject;
import com.example.graduate.dto.RemoteOperation;

/**
 * 消息模板
 */
public class MessageUtils {

    public static String message = "您的订单已成功发布";
    public static String message1 = "您的订单已被接单";
    public static String message2 = "您已成功接单";
    public static String message3 = "您的订单已成功取消";
    public static String message4 = "您的订单已完成";

    public static String getMessage(String orderType, String message) {
        RemoteOperation operation = new RemoteOperation();
        operation.setDeclare(message);
        operation.setOrderType(orderType);
        return JSONObject.toJSONString(operation);
    }
}
